package com.devunion.reader.client.to;

import java.util.List;

/**
 * @author Timoshenko Alexander 19.08.2009 : 11:09:28
 */
public class ProjectTreeTo extends AbstractTo {
    public static String PAPER_ID = "PAPER_ID";
    public static String NAME = "NAME";
    public static String PROJECT_NAME = "PROJECT_NAME";
    private static String HAS_CHILDREN = "HAS_CHILDREN";
    public static String PAPER_INFO_TO = "PAPER_INFO_TO";
    public static String PAGE_NUMBER = "PAGE_NUMBER";
    public static String RELATIVE_PATH = "RELATIVE_PATH";
    public static String ANNOTATIONS = "ANNOTATIONS";

    public Long getPaperId() {
        return get(PAPER_ID);
    }

    public void setPaperId(Long id) {
        set(PAPER_ID, id);
    }

    public String getProjectName() {
        return get(PROJECT_NAME);
    }

    public void setProjectName(String name) {
        set(PROJECT_NAME, name);
    }

    public Integer getPageNumber() {
        return get(PAGE_NUMBER);
    }

    public void setPageNumber(Integer pageNumber) {
        set(PAGE_NUMBER, pageNumber);
    }

    public String getRelativePath() {
        return get(RELATIVE_PATH);
    }

    public void setRelativePath(String relativePath) {
        set(RELATIVE_PATH, relativePath);
    }

    public List<AnnotationTo> getAnnotations() {
        return get(ANNOTATIONS);
    }

    public void setAnnotations(List<AnnotationTo> annotations) {
        set(ANNOTATIONS, annotations);
    }

    public PaperInfoTo getPaperInfoTo() {
        return get(PAPER_INFO_TO);
    }

    public void setPaperInfoTo(PaperInfoTo aPaperInfoTo) {
        set(PAPER_INFO_TO, aPaperInfoTo);
    }

    public String getName() {
        return get(NAME);
    }

    public void setName(String name) {
        set(NAME, name);
    }

    public Boolean hasChildren() {
        return get(HAS_CHILDREN);
    }

    public void setHasChildren(Boolean hasChildren) {
        set(HAS_CHILDREN, hasChildren);
    }
}


